load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library")

oncall("fboss_agent_push")

cpp_library(
    name = "capture",
    srcs = [
        "PcapFile.cpp",
        "PcapPkt.cpp",
        "PcapQueue.cpp",
        "PcapWriter.cpp",
        "PktCapture.cpp",
        "PktCaptureManager.cpp",
    ],
    exported_deps = [
        "//fboss/agent:fboss-error",
        "//fboss/agent:fboss-types",
        "//fboss/agent:packet",
        "//fboss/agent:packet_observer",
        "//fboss/agent:utils",
        "//fboss/agent/if:ctrl-cpp2-types",
        "//folly:exception",
        "//folly:file",
        "//folly:file_util",
        "//folly:range",
        "//folly:string",
        "//folly/io:iobuf",
        "//folly/logging:logging",
    ],
    exported_external_deps = [
        ("boost", None, "boost_container"),
    ],
)
